package com.system.dao;

import com.system.entity.SysPermission;
import com.system.entity.SysRole;
import com.system.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface ISysUserDao {
    SysUser login(@Param("uname") String uname, @Param("upass") String upass);

    List<SysRole> getAllRolesByUname(String uname);

    List<SysPermission> getAllPermissionsByUname(String uname);

}
